package drds.binlog.parse;

import drds.binlog.common.Authors;
import drds.common.Author;
import lombok.Getter;
import lombok.Setter;

@Author(name = Authors.LI_YANG)
public class FieldMetaData
{

    @Setter
    @Getter
    private String columnName;
    @Setter
    @Getter
    private String columnType;
    @Setter
    @Getter
    private boolean nullable;
    @Setter
    @Getter
    private String defaultValue;
    @Setter
    @Getter
    private boolean primaryKey;
    @Setter
    @Getter
    private boolean uniqueKey;
    @Setter
    @Getter
    private String extra;

    @Setter
    @Getter
    private boolean unsigned;


    public FieldMetaData()
    {

    }

    public FieldMetaData(String columnName, String columnType, boolean nullable, String defaultValue, boolean primaryKey)
    {
        this.columnName = columnName;
        this.columnType = columnType;
        this.nullable = nullable;
        this.defaultValue = defaultValue;
        this.primaryKey = primaryKey;
    }


}
